﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using iLangl.Model;
using iLangl.LanguageWire.Managers;

namespace iLangl.LanguageWire.Actions
{
	public class SyncSettings : BaseLWAction
	{
		public SyncSettings()
			: base()
		{
			RequestContext = new SettingsForTPRequestContext();
		}

		protected override string GetName()
		{
			return "SyncSettings";
		}

		protected override void _execute()
		{
			GetLanguages action = new GetLanguages();

			SettingsFromTP settings = SettingsManager.Instance.GetSettings();

			RequestContext.SetContext(settings);

			base._execute();
		}
		
	}
}
